package Strategy_robotapp;

/**
 * Created with IntelliJ IDEA.
 * User: Bjarke
 * Date: 15-10-13
 * Time: 19:24
 * To change this template use File | Settings | File Templates.
 */
public class Main {

    public static void main(String[] args){
        Robot r1 = new Robot("Big robot");
        Robot r2 = new Robot("Robo2");
        Robot r3 = new Robot("Johnny");

        r1.setBehaviour(new AgressiveBehaviour());
        r2.setBehaviour(new DefensiveBehaviour());
        r3.setBehaviour(new NormalBehaviour());

        r1.move();
        r2.move();
        r3.move();

        System.out.println("\r\nNew behaviours: " +
                "\r\n\t'Big Robot' gets really scared" +
                "\r\n\t, 'George v.2.1' becomes really mad because" +
                "it's always attacked by other robots" +
                "\r\n\t and R2 keeps its calm\r\n");

        r1.setBehaviour(new DefensiveBehaviour());
        r2.setBehaviour(new AgressiveBehaviour());

        r1.move();
        r2.move();
        r3.move();
    }
}
